Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement the gnfd peer for bsc nodes block syncing from Greenfield #1

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

alexgao001
Copy link
Collaborator

@alexgao001 alexgao001 commented Jul 17, 2024

Description

Background:

As BSC blocks are archived in Greenfield by the greenfield-bsc-archiver, full historical block data can be accessed and tracked there. When BSC nodes join the network, selecting the full mode, The BSC wrap client serves as an interface between these nodes and Greenfield, efficiently fetching blocks from Greenfield and delivering them to peers through the BSC P2P network.

Workflow:

The Greenfield peer does not participate in other operations within the BSC network, it solely provides block data to BSC nodes. It does not persist any data on its own; instead, when it receives requests (GetBodies and GetHeaders) from other BSC nodes, it fetches a bundle of blocks (# of blocks determined by the Block Archiver Service) from Greenfield and caches them in memory. This ensures the Greenfield peer delivers block data
to BSC nodes efficiently.

greenfield-peer

@alexgao001 alexgao001 changed the title feat: Bsc wrapped client feat: BSC wrapped client Jul 17, 2024
@alexgao001 alexgao001 force-pushed the wrapped-client branch 3 times, most recently from 0813fe6 to 011bede Compare July 22, 2024 10:14
@unclezoro
Copy link

can you change the readme of this repo

@alexgao001 alexgao001 changed the title feat: BSC wrapped client feat: implement the gnfd peer for bsc nodes block syncing from Greenfield Jul 24, 2024
@alexgao001 alexgao001 merged commit f41e0e5 into bnb-chain:master Jul 24, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants